package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.JournalBean;
import com.project.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface IRoleMapper extends BaseMapper<RoleBean> {

    public void addPower(@Param("roleId") Integer roleId,@Param("powerId") Integer[] powerId);

    public void delPower(@Param("roleId") Integer roleId);
    public void delUser(@Param("roleId") Integer roleId);

    public Set<RoleBean> findByUserId(Integer userId);
}
